Nevron Open Vision Documentation
Nevron.Nov Namespace / NPromise<TResult> Class / CastArray Method


In This Topic
    CastArray Method
    In This Topic
    Creates a promise that casts the objects array result of the specified promise, to an array of TResult objects type.
    Syntax
    'Declaration
     
    
    Public Shared Function CastArray( _
       ByVal promise As NPromise(Of Object()) _
    ) As NPromise(Of TResult())
    'Usage
     
    
    Dim promise As NPromise(Of Object())
    Dim value As NPromise(Of TResult())
     
    value = NPromise(Of TResult).CastArray(promise)
    public static NPromise<TResult[]> CastArray( 
       NPromise<object[]> promise
    )

    Parameters

    promise
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also